package com.cctc.juc.demo.Athread.Bcreate.BRunnable;

import java.io.IOException;
import java.util.concurrent.TimeUnit;

public class PeriodSchedulerDemo {

    public static void main(String[] args) {
        PeriodScheduler scheduler = new PeriodScheduler();
        try {
            TimeUnit.SECONDS.sleep(30);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        try {
            scheduler.close();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

}
